@echo off
echo Setting up remote repository and pushing to Gitee...
cd /d "C:\Users\Administrator\Documents\trae_projects\lt00001\magazine"

REM Set Git command path
set GIT_CMD="C:\Program Files\Git\cmd\git.exe"

REM 使用用户提供的Gitee仓库URL
set REPO_URL=https://gitee.com/k1565566/magazine.git

echo Using repository URL: %REPO_URL%
echo.

echo Adding remote repository...
%GIT_CMD% remote add origin %REPO_URL%
echo.

echo Checking remote configuration...
%GIT_CMD% remote -v
echo.

echo Pushing to remote repository...
%GIT_CMD% push -u origin master
echo.

echo Code has been pushed to your Gitee repository!
echo.
pause